package org.lanqiao.webfm.model;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javacommon.base.BaseEntity;


/**
 * @author zhengwei
 * @version 1.0
 * @since 1.0
 */

public class RightsRole extends BaseEntity implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;

	// alias
	public static final String TABLE_ALIAS = "系统角色";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_NAME = "名称";
	public static final String ALIAS_DESCP = "描述";
	public static final String ALIAS_STATUS = "状态";
	public static final String ALIAS_REMARK = "备注";
	public static final String ALIAS_PERM = "权限字符串";

	// columns START
	/**
	 * id db_column: ID
	 */
	private int id;
	/**
	 * name db_column: NAME
	 */
	private java.lang.String name;
	/**
	 * descp db_column: DESCP
	 */
	private java.lang.String descp;
	/**
	 * 1启用，0关闭 db_column: STATUS
	 */
	private java.lang.String status;
	/**
	 * remark db_column: REMARK
	 */
	private java.lang.String remark;

	private String perm;
	// columns END

	public RightsRole() {
	}

	public RightsRole(int id) {
		this.id = id;
	}

	public void setId(int value) {
		this.id = value;
	}

	public int getId() {
		return this.id;
	}

	public java.lang.String getName() {
		return this.name;
	}

	public void setName(java.lang.String value) {
		this.name = value;
	}

	public java.lang.String getDescp() {
		return this.descp;
	}

	public void setDescp(java.lang.String value) {
		this.descp = value;
	}

	public java.lang.String getStatus() {
		return this.status;
	}

	public void setStatus(java.lang.String value) {
		this.status = value;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}

	public void setRemark(java.lang.String value) {
		this.remark = value;
	}
	
	public String getPerm() {
		return perm;
	}

	public void setPerm(String perm) {
		this.perm = perm;
	}

	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RightsRole other = (RightsRole) obj;
		if (id != other.id)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "RightsRole [id=" + id + ", name=" + name + ", descp=" + descp
				+ ", status=" + status + ", remark=" + remark + ", perm="
				+ perm + "]";
	}


}
